<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改密码</title>
    <style>
        .admin_up{
            width: 300px;
            height: 250px;
            margin: 200px auto;
            border: 1px solid green;
            line-height: 10px;

        }
        .admin{
            position: relative;
            top: 10px;
            left: 100px;
            letter-spacing: 5px;
        }
        .img1{
            position: relative;
            top:11px;
            left: 55px;
        }
        .input1{
            position: relative;
            left: 55px;
            top:5px;
        }
        .img2{
            position: relative;
            top:11px;
            left: 55px;
        }
        .input2{
            position: relative;
            left: 55px;
            top:5px;
        }
        .img3{
            position: relative;
            top:11px;
            left: 55px;
        }
        .input3{
            position: relative;
            left: 55px;
            top:5px;
        }
        .but{
            position: relative;
            left: 130px;
            color: white;
            background-color:green;
            width: 60px;
            height: 25px;
            top:10px;
        }
        .message{
            position: relative;
            left: 50px;
            color: red;
        }

    </style>
</head>
<body>
<div class="admin_up">
    <form method="post" th:action="@{/teacher/updatePassword}">
        <h2 class="admin">修改密码</h2><br/>
        <div class="up_admin_password">
            <img class="img1" th:src="@{../static/img/password.png}" width="28px" height="28px">
            <input  class="input1" type="password" required= "required" name="old_admin_password" placeholder="请输入旧密码"><br/>
            <img class="img2" th:src="@{../static/img/password.png}" width="28px" height="28px">
            <input class="input2" type="password" required= "required" name="new_admin_password" placeholder="请输入新密码"><br/>
            <img class="img3" th:src="@{../static/img/password.png}" width="28px" height="28px">
            <input class="input3" type="password" required= "required" name="re_new_admin_password" placeholder="请再次输入"><br/>
            <p class="message" th:text="${upAdmin}" th:if="${not #strings.isEmpty(upAdmin)}"></p>
        </div>
        <div>
            <button class="but" type="submit">确定</button><br/>
        </div>
    </form>
</div>
</body>
</html>